<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<!--{include(pe_tpl('setting_menu.html'));}-->
	<form method="post" id="form" autocomplete="off">
	<div class="right_main">
		<div class="tixing corg">
			<p><a href="https://connect.qq.com/index.html" class="cblue mar20" target="_blank">QQ登录接口地址</a><a href="https://open.weixin.qq.com/" class="cblue" target="_blank">微信登录接口地址</a></p>
		</div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat20 mab20">
		<tr>
			<td align="right" width="200"><strong>QQ登录：</strong></td>
			<td>
				<div class="layui-form mat2 fl">
					<input type="checkbox" name="login_qq_state" value="1" <!--{if($info['login_qq_state']['setting_value']):}-->checked<!--{endif;}--> lay-skin="switch" lay-text="开启|关闭" />
				</div>
			</td>
		</tr>
		<tr>
			<td align="right">AppID：</td>
			<td><input type="text" name="login_qq_appid" value="{$info['login_qq_appid']['setting_value']}" class="inputall input500" /></td>
		</tr>
		<tr>
			<td align="right">AppKEY：</td>
			<td><input type="text" name="login_qq_appkey" value="{$info['login_qq_appkey']['setting_value']}" class="inputall input500" /></td>
		</tr>
		<tr>
			<td align="right">网站回调域：</td>
			<td>{$pe['host']}include/plugin/login/qqlogin/callback.php</td>
		</tr>
		<tr>
			<td align="right"><strong>微信登录：</strong></td>
			<td>
				<div class="layui-form mat2 fl">
					<input type="checkbox" name="login_wx_state" value="1" <!--{if($info['login_wx_state']['setting_value']):}-->checked<!--{endif;}--> lay-skin="switch" lay-text="开启|关闭" />
				</div>
			</td>
		</tr>
		<tr>
			<td align="right">AppID：</td>
			<td><input type="text" name="login_wx_appid" value="{$info['login_wx_appid']['setting_value']}" class="inputall input500" /></td>
		</tr>
		<tr>
			<td align="right">AppSecret：</td>
			<td><input type="text" name="login_wx_appsecret" value="{$info['login_wx_appsecret']['setting_value']}" class="inputall input500" /></td>
		</tr>
		<tr>
			<td align="right">授权回调域：</td>
			<td>{$_SERVER['HTTP_HOST']}</td>
		</tr>
		</table>
	</div>
	<div class="right_bottom center">
		<input type="hidden" name="pe_token" value="{$pe_token}" />
		<input type="hidden" name="pesubmit" value="{$pe_token}" />
		<input type="button" value="提 交" class="tjbtn">
	</div>
	</form>
</div>
<link rel="stylesheet" href="{$pe['host']}include/plugin/layui/css/layui.css">
<script src="{$pe['host']}include/plugin/layui/layui.js"></script>
<script type="text/javascript">
$(function(){
	$(":button").click(function(){
		pe_submit("{pe_nowurl()}", function(json){
			if (json.code == 1) pe_open('reload', 1000);
		});
	})
})
layui.use(['form'], function(){
	form = layui.form;
});
</script>
<!--{include(pe_tpl('footer.html'));}-->